package br.com.covosys.model.bean;

import java.io.Serializable;

public class Filtro<BEAN> implements Serializable, Cloneable {

	private BEAN bean;
	
	public Filtro(BEAN bean) {
		this.bean = bean;
	}
	
	@Override
	@SuppressWarnings("unchecked")
	public Filtro<BEAN> clone() throws CloneNotSupportedException {
		return (Filtro<BEAN>) super.clone();
	}
	
	@SuppressWarnings("unchecked")
	public void reset() {
		if (bean != null) {
			try {
				bean = (BEAN) bean.getClass().newInstance();
			} catch (Exception e) {
				
			}
		}
	}
}